﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AbnormalTask.aspx.cs" Inherits="BasePages_AbnormalTask" %>
<%@ Register Assembly="YYWebControl" Namespace="YYWebControl.YYSimpleCalendar" TagPrefix="YYWebControl" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>

    <link href="../Css/hfmanger.css" rel="stylesheet" type="text/css" />
</head>
<body onload="remove_loading();">
    <form id="form1" runat="server">
                <table width="100%" >
                    <tr>
                        <td align="left" class="toolbar" style="width: 29%; height: 23px" valign="middle">
                        <asp:Image ID="Image1" runat="server" ImageUrl="../images/rss_2.gif" /><strong>异常终止的任务</strong></td>
                        <td class="toolbar" style="width: 51%; height: 23px">
                        </td>
                        <td class="toolbar" style="width: 49px; height: 23px">
                        </td>
                    </tr>
                    <tr>
                        <td align="left"  colspan="3" class="blackbar" valign="middle">
                        </td>
                    </tr>
                    <tr>
                        <td align="center" class="blackbar" colspan="3" valign="middle">
                            <table style="width: 98%">
                                <tr>
                                    <td class="listContent">
                  <asp:CheckBox ID="cbxWorkflowCaption" runat="server" Text="业务名:" /><asp:TextBox ID="tbxFlowInsCaption" runat="server" Width="131px"></asp:TextBox><asp:CheckBox ID="cbxDatetime" runat="server" Text="到达时间：从" /><YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar1" runat="server" />
                    到<YYWebControl:YYSimpleCalendar ID="YYSimpleCalendar2" runat="server" />
                            <asp:ImageButton ID="ImageButton1" runat="server" Height="20px" ImageUrl="../images/查询.gif"
                                Width="39px" OnClick="ImageButton1_Click" /></td>
                                    
                                </tr>
                               
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" class="blackbar" colspan="3"  valign="middle">
                        &nbsp;&nbsp;
                    <asp:Image ID="Image2" runat="server" ImageUrl="~/images/0.ico" />
                    正常任务&nbsp;&nbsp;&nbsp;&nbsp; 
                    <asp:Image ID="Image3" runat="server" ImageUrl="~/images/5.ico" />
                            指派或退回的任务</td>
                    </tr>
                    <tr>
                        <td align="center" class="blackbar" colspan="3" valign="middle"><table style="width: 98%">
                            <tr>
                                <td class="listContent">
                                <asp:GridView ID="gvAbnormalTask" runat="server" AutoGenerateColumns="False"
                                    CellPadding="4" ForeColor="#333333"
                                    PageSize="20" Width="100%" GridLines="None" OnRowDataBound="gvAbnormalTask_RowDataBound">
                                    <FooterStyle BackColor="Black" Font-Bold="True" ForeColor="Black" />
                                    <RowStyle BackColor="#EFF3FB" />
                                    <Columns>
                                     <asp:ImageField DataImageUrlField="status" DataImageUrlFormatString="../images/{0}.ico">
                            </asp:ImageField>
                                        <asp:BoundField DataField="WorkFlowNo" HeaderText="流程编号">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:HyperLinkField DataNavigateUrlFields="WorkTaskInstanceId,OperatorInstanceId" DataNavigateUrlFormatString="WorkTaskCtrlPage.aspx?WorkTaskInstanceId={0}&amp;OperatorInstanceId={1}&amp;state=查看"
                                            DataTextField="FlowInstanceCaption" HeaderText="业务名" Target="_blank">
                                            <ItemStyle Width="200px" />
                                        </asp:HyperLinkField>
                                        <asp:BoundField DataField="TaskCaption" HeaderText="任务名">
                                            <ItemStyle Width="150px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="pOperatedDes" HeaderText="提交人">
                                            <ItemStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Priority" HeaderText="优先级">
                                            <HeaderStyle Width="100px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="taskStartTime" HeaderText="开始时间">
                                            <ItemStyle Width="200px" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="taskEndTime" HeaderText="结束时间">
                                            <ItemStyle Width="200px" />
                                        </asp:BoundField>
                                        <asp:HyperLinkField DataNavigateUrlFields="workflowId,workflowInstanceId" DataNavigateUrlFormatString="WorkflowMap.aspx?workflowId={0}&amp;workflowInstanceId={1}"
                                            HeaderText="查看" Target="_blank" Text="流程图">
                                            <ItemStyle Width="70px" />
                                        </asp:HyperLinkField>
                                        <asp:BoundField DataField="TaskInsDescription" HeaderText="备注">
                                    <ItemStyle Width="100px" />
                                </asp:BoundField>
                                    </Columns>
                                    <PagerStyle ForeColor="Black" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                    <HeaderStyle  Font-Bold="True" ForeColor="Black" HorizontalAlign="Left" CssClass="gridHead" />
                                    <EditRowStyle BackColor="#2461BF" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                                </td>
                            </tr>
                        </table>
                        </td>
                    </tr>
                    </table>

    </form>
</body>
</html>
